<?php
/////////////////////////////////////////////////////////////////////////////
// 这个文件是 网城创想多用户商城 项目的一部分
//
// Copyright (c) 2007 - 2008 www.shopnc.net 
//
// 要查看完整的版权信息和许可信息，请查看源代码中附带的 COPYRIGHT 文件，
// 或者访问 http://www.shopnc.net/ 获得详细信息。
/////////////////////////////////////////////////////////////////////////////

/**
 * FILE_NAME : own_member.xml.php   FILE_PATH : D:\webroot\mulitishop\member\own_member.xml.php
 * ....将收货地址生成XML
 *
 * @copyright Copyright (c) 2007 - 2007 www.shopnc.net 
 * @author 网城创想多用户商城开发团队 php_netproject@yahoo.com.cn
 * @package 
 * @subpackage 
 * @version Fri Sep 21 18:01:05 CST 2007
 */


require ("../global.inc.php");

class OwnReceiveXml extends CommonFrameWork{
	/**
	 * 收货地址对象
	 *
	 * @var obj
	 */
	var $obj_receive;
	function main(){
		/**
		 * 创建文章对象
		 */
		if (!is_object($this->obj_receive)){
			require_once("receive.class.php");
			$this->obj_receive = new ReceiveClass();
		}
		require_once ("xmlwrite.class.php");
		$xml_write = new XML();

		
		$receive_array = $this->obj_receive->getOneReceive($this->_input['member_id'],$this->_input['receive_id']);
		
		$Att['receive_id']=$receive_array['receive_id'];
		$Att['member_id']=$receive_array['member_id'];
		$Att['receive_name']=$receive_array['receive_name'];
		$Att['province']=$receive_array['province'];
		$Att['city']=$receive_array['city'];
		$Att['address_']=$receive_array['address'];
		$Att['mobilephone']=$receive_array['mobilephone'];
		$Att['phone']=$receive_array['phone'];
		$Att['zip']=$receive_array['zip'];
		$xml_write->CreateNode('Receive',$Att);
		$xml_write->Display();
	}
}
$receive = new OwnReceiveXml("","text/xml");
$receive->main();
unset($receive);
?>